home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / _archvrs / unix / unzip51 / os2 / makefile.os2 < prev    next >
Encoding:
Makefile  |  1992-10-20  |  3.2 KB  |  120 lines

  1. # Makefile for UnZip, ZipInfo and FUnZip                    19 October 1992
  2. #
  3. # - for Microsoft C under OS/2 1.x (16-bit), version 6.00 or higher
  4. # - for IBM C Set/2 under OS/2 2.0 (32-bit)
  5. # - for Watcom C/386 under OS/2 2.0 (32-bit), version 9.0 or higher
  6. # - for GNU gcc (emx kit) under OS/2 2.0 (32-bit), version 0.8e or higher
  7.  
  8. # To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its
  9. # name being "makefile.os2").
  10.  
  11. # Notes on Microsoft C 6.00 compilation:
  12. #   The resulting programs can be used under OS/2 1.x or 2.x
  13. #   protected mode only, not under DOS.  A larger stack has to
  14. #   be used for OS/2 because system calls use more stack than
  15. #   under DOS; 8k is recommended by Microsoft.
  16.  
  17. # Notes on IBM C Set/2, Watcom C/386 or gcc compilation:
  18. #   The resulting programs can be used under OS/2 protected
  19. #   mode of OS/2 2.0 only, not under 1.x and not under DOS.
  20.  
  21. default:
  22.     @echo Enter "$(MAKE) -f makefile.os2 msc"
  23.     @echo    or "$(MAKE) -f makefile.os2 ibm"
  24.     @echo    or "$(MAKE) -f makefile.os2 watcom"
  25.     @echo    or "$(MAKE) -f makefile.os2 gcc"
  26.  
  27. mscdos:
  28.     $(MAKE) -f makefile.os2 all \
  29.     CC="cl -nologo -AC -Oaict -Gs" \
  30.     CFLAGS="-Zp1" \
  31.     LDFLAGS="-Lr -F 1000 -Fe" \
  32.     LDFLAGS2="" \
  33.     OUT="-Fo" \
  34.     OBJ=".obj" \
  35.     OBJU2="msdos.obj" OBJZ2="" OBJF2="" DEF=""
  36.  
  37. msc:
  38.     $(MAKE) -f makefile.os2 all \
  39.     CC="cl -nologo -AC -Ocegit -Gs" \
  40.     CFLAGS="-G2 -Zp1 -DOS2 -DMSC" \
  41.     LDFLAGS="-Lp -F 2000 -Fe" \
  42.     LDFLAGS2="" \
  43.     OUT="-Fo" \
  44.     OBJ=".obj" \
  45.  
  46. ibm:
  47.     $(MAKE) -f makefile.os2 all \
  48.     CC="icc -q -O -Gs" \
  49.     CFLAGS="-Sm -Sp1 -DOS2" \
  50.     LDFLAGS="-B/ST:0x20000 -Fe" \
  51.     LDFLAGS2="" \
  52.     OUT="-Fo" \
  53.     OBJ=".obj" \
  54.  
  55. watcom:
  56.     $(MAKE) -f makefile.os2 all \
  57.     CC="wcl386 -zq -Ox -s" \
  58.     CFLAGS="-Zp1 -DOS2" \
  59.     LDFLAGS="-k0x20000 -x -Fe=" \
  60.     LDFLAGS2="" \
  61.     OUT="-Fo" \
  62.     OBJ=".obj" \
  63.     DEF=""
  64.  
  65. gcc:
  66.     $(MAKE) -f makefile.os2 all \
  67.     CC="gcc -O" \
  68.     CFLAGS="-DOS2" \
  69.     LDFLAGS="-o " \
  70.     LDFLAGS2="-los2 -s" \
  71.     OUT="-o" \
  72.     OBJ=".o"
  73.  
  74. # variables
  75. OBJU  = unzip$(OBJ) crypt$(OBJ) envargs$(OBJ) explode$(OBJ) \
  76.     extract$(OBJ) file_io$(OBJ) inflate$(OBJ) mapname$(OBJ) \
  77.     match$(OBJ) misc$(OBJ) unreduce$(OBJ) unshrink$(OBJ)
  78. OBJU2 = os2$(OBJ)
  79. OBJZ  = zipinfo$(OBJ) envargs$(OBJ) match$(OBJ)
  80. OBJZ2 = os2_$(OBJ)
  81. OBJF  = funzip$(OBJ) inflate$(OBJ)
  82. OBJF2 = crypt_$(OBJ)
  83. DEF   = unzip.def
  84.  
  85. .c$(OBJ):
  86.     $(CC) $(CFLAGS) -c $<
  87.  
  88. all:    unzip.exe zipinfo.exe funzip.exe
  89.  
  90. unzip.exe: $(OBJU) $(OBJU2) $(DEF)
  91.     $(CC) $(LDFLAGS)$@ $(DEF) $(OBJU) $(OBJU2) $(LDFLAGS2)
  92.  
  93. zipinfo.exe: $(OBJZ) $(OBJZ2) $(DEF)
  94.     $(CC) $(LDFLAGS)$@ $(DEF) $(OBJZ) $(OBJZ2) $(LDFLAGS2)
  95.  
  96. funzip.exe: $(OBJF) $(OBJF2) $(DEF)
  97.     $(CC) $(LDFLAGS)$@ $(DEF) $(OBJF) $(OBJF2) $(LDFLAGS2)
  98.  
  99. crypt$(OBJ):    crypt.c unzip.h crypt.h zip.h
  100. envargs$(OBJ):    envargs.c unzip.h
  101. explode$(OBJ):    explode.c unzip.h
  102. extract$(OBJ):    extract.c unzip.h crypt.h
  103. file_io$(OBJ):    file_io.c unzip.h crypt.h
  104. funzip$(OBJ):    funzip.c unzip.h crypt.h
  105. inflate$(OBJ):    inflate.c unzip.h
  106. mapname$(OBJ):    mapname.c unzip.h
  107. match$(OBJ):    match.c unzip.h
  108. misc$(OBJ):    misc.c unzip.h
  109. os2$(OBJ):    os2.c unzip.h
  110. unreduce$(OBJ):    unreduce.c unzip.h
  111. unshrink$(OBJ):    unshrink.c unzip.h
  112. unzip$(OBJ):    unzip.c unzip.h crypt.h
  113. zipinfo$(OBJ):    zipinfo.c unzip.h
  114.  
  115. crypt_$(OBJ):    crypt.c unzip.h
  116.     $(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ crypt.c
  117.  
  118. os2_$(OBJ):    os2.c unzip.h
  119.     $(CC) -c $(CFLAGS) -DZIPINFO $(OUT)$@ os2.c
  120.